<?php

namespace App\Kuafu\CouponPackage\Model;

use App\Kuafu\Base\Model\BaseModel;
use App\Kuafu\Base\Model\Traits\KfSoftDeletes;
use App\Kuafu\Shop\Model\Shop;
use Illuminate\Database\Eloquent\Relations\HasOne;

class CouponPackageShopMappingModel extends BaseModel
{
    use KfSoftDeletes;

    protected $connection = 'mysql';
    protected $table      = 'coupon_package_shop_mappings';
    protected $primaryKey = 'id';

    public function shopInfoRel(): HasOne
    {
        return $this->hasOne(Shop::class, 'id', 'shopId');
    }

}
